package com.gofaraway.start;

import com.gofaraway.service.student.springboot.config.MyImportSelector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * @author admin
 */
@SpringBootApplication
//@EnableGlobalSpringExceptionHandler
@ComponentScan(basePackages = {"com.gofaraway"})
@Import(MyImportSelector.class)
public class GoFarAwayStartApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext cac = SpringApplication.run(GoFarAwayStartApplication.class, args);
        for (String beanDefinitionName : cac.getBeanDefinitionNames()) {
            System.out.println(beanDefinitionName);
        }


    }

}
